package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * @author eason
 * @ClassName: shareRecordTable
 * @Description: 分享表定义表
 * @date 2015年3月23日 下午1:00:00
 */
@Entity
@Table(name = "tb_xa_sharerecordtable")
@ApiModel(value = "分享表定义表")
public class ShareRecordTable extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户,用户")
    private Long userId;
    /**
     * {@link com.web.exiaodao.business.constant.JConstant.SharePlatformType}
     */
    @ApiModelProperty(value = "类型（2机构;22住;3商城;4玩;42:作者;游学5;服务公共1;12:家政护理; 13:医疗服务|医疗康复; 14:护理培训|培训义工 15:义工中心)")
    private Integer shareType;
    @ApiModelProperty(value = "分享的对象id,分享的对象id")
    private Long shareObjectId;
    @ApiModelProperty(value = "分享平台(1:微信 2：微博 3:微信朋友圈)")
    private Long sharePlatform;
    @ApiModelProperty(value = "分项名称,分项名称")
    private String shareName;
    @ApiModelProperty(value = "分享的图片(单张),分享图片地址")
    private String shareUrl;

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Column(nullable = true, length = 50)
    public Long getUserId() {
        return userId;
    }

    public void setShareType(Integer shareType) {
        this.shareType = shareType;
    }

    @Column(nullable = true, length = 50)
    public Integer getShareType() {
        return shareType;
    }

    public void setSharePlatform(Long sharePlatform) {
        this.sharePlatform = sharePlatform;
    }

    @Column(nullable = true, length = 50)
    public Long getSharePlatform() {
        return sharePlatform;
    }

    public void setShareObjectId(Long shareObjectId) {
        this.shareObjectId = shareObjectId;
    }

    @Column(nullable = true, length = 50)
    public Long getShareObjectId() {
        return shareObjectId;
    }

    public void setShareName(String shareName) {
        this.shareName = shareName;
    }

    @Column(nullable = true, length = 500)
    public String getShareName() {
        return shareName;
    }

    @Column(nullable = true, length = 500)
    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }
}
